package com.tmz.order;


import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.annotation.Bean;
import org.springframework.web.client.RestTemplate;

/**
 * @author cloud
 */
@SpringBootApplication
public class OrderApplication {

    public static void main(String[] args) {
        SpringApplication.run(OrderApplication.class, args);
        // 打印启动标识字符
        System.out.println("=============================================");
        System.out.println("=                                          =");
        System.out.println("=         Order Application Started        =");
        System.out.println("=                                          =");
        System.out.println("=============================================");
    }


    /**
     * 远程调用Bean
     * */
    @Bean
    public RestTemplate restTemplate() {
        return new RestTemplate();
    }
}
